import Vue from 'vue'
import Router from 'vue-router'
import welcome from "../components/welcome";
import index from "../components/index";
import goods from "../components/goods";
import shopCar from "../components/shopCar";
import userInfo from "../components/userInfo";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: welcome,
      children:[
        {
          path: '/index',
          component: index,
        },
        {
          path: '/goods',
          component: goods,
        },
        {
          path: '/shopCar',
          component: shopCar,
        },
        {
          path: '/userInfo',
          component: userInfo,
        },
      ]
    },
  ]
})
